Skip to content

fix: refactor X-Plane window handling logic - #21

Open
BrunoCostaGH wants to merge 2 commits into
smiley22:masterfrom
BrunoCostaGH:fix/unable-find-window
Open

fix: refactor X-Plane window handling logic#21
BrunoCostaGH wants to merge 2 commits into
smiley22:masterfrom
BrunoCostaGH:fix/unable-find-window

Conversation

@BrunoCostaGH

@BrunoCostaGH BrunoCostaGH commented Jul 26, 2026

Copy link
Copy Markdown

Summary

Added a fallback mechanism to correctly detect the X-Plane window, accommodating constant changes to this title.

Reason

  • LR has been changing the window title from X-System, causing the existing window detection logic to fail.

Impact

  • No changes to core application logic.

Notes

  • Tested on Windows 11 with X-Plane 12.4.3.

Resources

Fixes #14

@BrunoCostaGH

Copy link
Copy Markdown
Author

Hopefully it's the last time I ever have to mess with this plugin in regard to the window title.

@m-mcqueen

Copy link
Copy Markdown

Thanks for taking another look at this! I tried using MouseButtons_v1.0.1.zip, however X-Plane crashed to desktop and I got this entry in the log.txt:

An unknown plugin has bypassed XPLM when calling SDK functions. This is a plugin bug.

@BrunoCostaGH

Copy link
Copy Markdown
Author

Well that sucks. I only tested BetterMouseYoke but it's virtually the same code replicated to all plugins. I'll take a look into it when I get a chance.

Thank you for testing.

@BrunoCostaGH

BrunoCostaGH commented Jul 31, 2026

Copy link
Copy Markdown
Author

@m-mcqueen Hi, I've tested on my system, and I can't replicate the described behaviour.

Which OS and XP12 version are you using?
Can you share a complete Log.txt so I can debug what happened?

@m-mcqueen

Copy link
Copy Markdown

Interesting....

I'm on Windows 11 10.0.22631, XP12.4.3-r2

My specs are
AMD 9800x3D
RTX 4090
32 GB RAM

The log doesn't give much away... as soon as I click a mouse button, XP12 crashes, and the error code I provided above shows in the log.

I just clicked somewhere randomly in the cockpit; typically I use it in conjunction with MoveVR to be able to interact with the inibuilds A300 EFB, however I did not turn MoveVR on before testing this time so I don't think it's a MoveVR issue.

Log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can no longer find X-Plane window

2 participants